#pragma once
#include "behaver.h"

extern Atlas atlas_run_effect;

class Peashooter_run : public Behaver
{
public:
	Peashooter_run()
	{
		pea_run_left.set_atlas(&atlas_run_effect);
		//pea_run_right.set_atlas(&atlas_peashooter_run_right);

		pea_run_left.set_interval(100);
		//pea_run_right.set_interval(100);
	}
	~Peashooter_run() = default;

	void on_update(int delta)
	{
		pea_run_left.on_update(delta);
	}
	void on_draw(const Camera& camera)
	{
		pea_run_left.on_draw(camera,(int)position.x,(int)position.y);
	}
private:
	Animation pea_run_left;
	Animation pea_run_right;
};